package com.ibeifeng.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ibeifeng.crm.bean.Classroom;
import com.ibeifeng.crm.dao.ClassroomDao;
import com.ibeifeng.crm.service.ClassroomService;

@Service
public class ClassroomServiceImpl implements ClassroomService {
	@Resource
	ClassroomDao classroomDao;
	@Override
	public List<Classroom> queryAll() {
		return classroomDao.queryAll();
	}

	@Override
	public int add(Classroom classroom) {
		return classroomDao.add(classroom);
	}

	@Override
	public int update(Classroom classroom) {
		return classroomDao.update(classroom);
	}

	@Override
	public int delete(Classroom classroom) {
		return classroomDao.delete(classroom);
	}

	@Override
	public Classroom queryClassroom(Classroom classroom) {
		return classroomDao.queryClassroom(classroom);
	}

	@Override
	public int count() {
		return classroomDao.count();
	}

	@Override
	public List<Classroom> findAllSplit(int pg, int pgSize) {
		return classroomDao.findAllSplit(pg,pgSize);
	}

}
